, the response time of web tasks peaked, slow response speed.
In order to further identify the problem, click the web transaction interface to further understand the proportion of slow Transaction Response Time and quickly locate the problem.api/medicines/indexThe response time is long.
Click the wrong request address to list the URL of the error, the first and last occurrence time, the number of errors, the Agent name, error information, and stack information.
Good application
problems that common applications face, such as database optimization and distributed deployment, which is a problem that a large concurrent WEB application needs to face and solve, For example, you can deploy a distributed database in a master-slave way, or split the database in a split-or-table manner. Also, when running rails servers or other back-end applications, monitoring with a different process, s
in a non-Rails environment. After configuring the ruby environment and the Capistrano plugin, install the following Plugin:Listing 22. Using Capistrano in a non-Rails Environment
gem sources -a http://gems.github.com/ gem install leehambley-railsless-deploy
Conclusion
This article focuses On some useful practices when using Ruby On Rails to develop and deploy
1. The following two reasons are causing your Rails application to slow down:
Ruby and rails should not be used as the preferred place for Ruby and rails. (with Ruby and Rails doing a job that's not good for doing)
Excessive memory consumption leads to a lot of time for garbage collection.
How to Improve Ruby On Rails Performance
1 Introduction to Introduction
It is always said that Rails is so slow that it has become a common issue in the Ruby and Rails communities. However, this statement is not true. As long as you use Rails correctly, it is not difficult t
Explore some methods to optimize Ruby on Rails performance, rubyrails
1. There are two reasons for slowing down your Rails application:
Ruby and Rails should not be used as the preferred choice. (I used Ruby and Rails to do something I was not good)
Excessive memory con
monitoring performance, load, and exceptions. For a long time, we've been using Exceptionnotifier and Logged_exceptions plug-ins, which are really useful. But we hope to expand these plug-ins so that they can better adapt to our working environment. We want to avoid an overflow of messages due to the only means of notification, so that we can get notifications through a variety of ways, by collaborating to
Rails applications are more likely to encounter two types of performance problems: one is that rails executes slowly, the CPU consumes too much, and the other is a rails process memory leak. Solving both of these problems requires that you first pinpoint the problematic code before you know how to remedy the problem.
Do you think your rails application is too slow to respond? This is a speech on the RailsConf2006 of Rails ' application performance optimization, which I hope will help you.
Before you optimize your application, we need to make the following points clear:
Blind optimization without first performing a performance test
Ruby on Rails (also called Rails) is a Ruby Framework for Internet applications that support databases, what are the core features of Ruby on Rails and the articles into the world of Ruby on Rails reported before BKJIA?" This article focuses on how to optimize the performance
Participating in the monitoring Process
Participate in the monitoring process
ActiveRecord controls the life cycle of the model object, creates them, monitors them as they are modified, saved, and updated, and monitors them when they are deleted. Using the callback function, ActiveRecord allows our code to participate in this monitoring process.
ActiveRecord d
Performance monitoring tool: 1. Task Manager 2. Performance Logs and alarmsI. Task Manager1. Purpose: display applications running on the system Program Process, CPU, memory, and other usage and statistical information.2. Open Mode (local or remote)1> right-click the blank area in the taskbar and select "Task Manager"2> CTRL + ALT + del ctrl + ALT + end3> Ctrl +
Common Linux system performance monitoring commands and linux system performance monitoring
URL: http://www.cnblogs.com/myresearch/p/linux-monitor-tools.html.Monitor CPU usage
Run the following command:
[root@localhost ~]# gnome-system-monitor
The graphical tool GNOME System Monitor is displayed, as shown in:
Monitor C
This is a summary of our experience in running the Javaeye website for nearly half a year. There are very few people in the entire rails community who are running a large number of rails Web site experience to discuss this topic in detail. As for the domestic, the rails application all stays in the study and the attempt stage, the real investment business Operati
Introduction to common linux performance monitoring tools and linux performance monitoring tools
Record several frequently used ones.1. top/htop
As we all know about top, there are several common parameters: (you can also start and interact)
-D: Set the delay time-S: accumulative time mode k: End Process q: Exit topZ:
In Ruby on Rails(http://www.maiziedu.com/course/ruby-px/) , many rails Programmers often forget to consider performance issues, which can lead to slow website speeds, a spike in memory usage,and frequent reboots ofApache , so you'll need to optimize rails performance. The s
ordered by executions:The top SQL that is sorted by the number of executions of SQL is recorded. This sort shows the number of SQL executions that are within the scope of the monitoring.4.6 SQL ordered by Parse Calls:Top SQL that records the number of soft parse times for SQL. When it comes to soft-parsing (soft prase) and hard-parsing prase, it's impossible to say how Oracle handles SQL.4.7 SQL ordered by sharable Memory:The top SQL that SQL occupie
In Rails, a MySQL Partition Table is used to improve the performance. railsmysql
The partition table of MySQL is a simple and effective feature for processing large data tables. Through this feature, applications can efficiently process large data tables with few changes, however, due to some practices in Rails ActiveRecord design, some data processing may not ta
Rails is for Web projects and you have to think about the large amount of traffic, so let's take a look at how rails performs performance testing.
1. To perform performance testing, we first have to imitate a large number of data, we now know that in the test/fixtures/directory in the Yml file to add our test data, wh
The previous section uses Ruby on Rails to complete an application and put it on a server in an education network. In-school testing feel speed can also, but from Netcom (part of the school dormitory is Netcom network) access has been very slow, so began the journey of debugging speed. At the beginning of the application run on the Webbrick server, I also know that Webbrick is a development test server, Ruby wrote, at one time can only respond to a re
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.